package com.websuites.utils;

import javax.servlet.http.HttpServletRequest;

public class URLUtil 
{
	public static final String getFileName(HttpServletRequest request)
	{
		String URI = request.getRequestURI();
		return URI.substring(URI.lastIndexOf("/") + 1);
	}
	
	public static final boolean isJspFile(HttpServletRequest request)
	{
		return request.getRequestURI().endsWith(".jsp");
	}
}
